import Types from '../actionTypes';
import {getHistory} from '../../api';

const getHistoryInfo = (page, page_size, type, time) => {
  return new Promise((resolve, reject) => {
    getHistory(page, page_size, type, time).then(res => {
      console.log('history:', res);
      resolve({
        type: Types.GET_HISTORY_INFO,
        data: res,
      });
    });
  });
};
export default {
  getHistoryInfo,
};
